package OOday01;

/**
 * 继承的测试
 */
public class ExtendsTest {
    public static void main(String[] args) {
        Student aa=new Student();
        aa.name="楚云飞";
        aa.age=18;
        aa.address="学校";
        aa.stuId=123;
        aa.className="358班";
        aa.eat();
        aa.study();
        aa.sayHi();
        aa.sleep();
        System.out.println("我是"+aa.className+"的");



        Teacher bb=new Teacher(5000,"李云龙",18,"平安格勒");
        bb.eat();
        bb.teach();
        bb.sayHi();
        bb.sleep();
        System.out.println("++++++++++++++++++++");



        Doctor cc=new Doctor("特一级厨师","赵四",18,"曹县");
        cc.eat();
        cc.cut();
        cc.sayHi();
        cc.sleep();

    }
}
